FROM openshift/golang-builder@sha256:4820580c3368f320581eb9e32cf97aeec179a86c5749753a14ed76410a293d83 AS builder
ENV __doozer=update BUILD_RELEASE=202202160023.p0.gfe4a0a2.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.gfe4a0a2.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=fe4a0a2 OS_GIT_VERSION=4.10.0-202202160023.p0.gfe4a0a2.assembly.stream-fe4a0a2 SOURCE_DATE_EPOCH=1643208621 SOURCE_GIT_COMMIT=fe4a0a2f48fcc9069910773b32188597d899bdde SOURCE_GIT_TAG=v1.0.0-rc2-901-gfe4a0a2f SOURCE_GIT_URL=https://github.com/openshift/csi-external-snapshotter 
WORKDIR /go/src/github.com/kubernetes-csi/external-snapshotter
COPY . .
RUN make build

FROM openshift/ose-base:v4.10.0.20220216.010142
ENV __doozer=update BUILD_RELEASE=202202160023.p0.gfe4a0a2.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.gfe4a0a2.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=fe4a0a2 OS_GIT_VERSION=4.10.0-202202160023.p0.gfe4a0a2.assembly.stream-fe4a0a2 SOURCE_DATE_EPOCH=1643208621 SOURCE_GIT_COMMIT=fe4a0a2f48fcc9069910773b32188597d899bdde SOURCE_GIT_TAG=v1.0.0-rc2-901-gfe4a0a2f SOURCE_GIT_URL=https://github.com/openshift/csi-external-snapshotter 
COPY --from=builder /go/src/github.com/kubernetes-csi/external-snapshotter/bin/snapshot-controller /usr/bin/
ENTRYPOINT ["/usr/bin/snapshot-controller"]

LABEL \
        name="openshift/ose-csi-snapshot-controller" \
        com.redhat.component="ose-csi-snapshot-controller-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.maintainer.component="Storage" \
        release="202202160023.p0.gfe4a0a2.assembly.stream" \
        io.openshift.build.commit.id="fe4a0a2f48fcc9069910773b32188597d899bdde" \
        io.openshift.build.source-location="https://github.com/openshift/csi-external-snapshotter" \
        io.openshift.build.commit.url="https://github.com/openshift/csi-external-snapshotter/commit/fe4a0a2f48fcc9069910773b32188597d899bdde" \
        version="v4.10.0"

